package com.itheima.controller;

import com.itheima.service.LocalItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LocalItemController {

    @Autowired
    LocalItemService localItemService;



    @GetMapping("/hi")
    public String hi(String age) {

        return localItemService.hi(age);
    }
    @GetMapping("/hello")
    public String hello(String name) {

        return localItemService.hello(name);
    }
}
